<template>
    <div>
        {{$route.params.fiction_id}}
        {{$route.params.capter_id}}
    </div>
</template>
<script>
export default {
    beforeRouteEnter(to,from,next){
        let uid = localStorage.getItem('uid') || '';
        if(uid){
            next()
        }else{
            next('/login')
        }
    }
}
</script>
